export const PAGE_CODE = 'dcs-sales-kdProductionPlan';
import {PAGE} from '../constants';
import {baseDataStatus} from '../Enum';
import moment from 'moment';
import {EnumItem, Enum} from 'Shared/utils/enumType';
const CN = 'zh-CN';
const EN = 'en-US';
const PT = 'pt-PT';
export const DEFAULT_QUERY_OPTION = {
    brandId: '',
    businessType: undefined,
    marketDepartmentId: '',
    dealerId: '',
    planYear: moment().year(),
    status: [baseDataStatus.生效],
    createTime: [],
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
};
// 操作权限
export const PERMISSION = {
    abandon: 'abandon',
    update: 'update',
    export: 'export',
    import: 'import',
};

//装配方式（DCSSales） - https://wiki.sdtdev.net/CHERYINTL:装配方式（DCSSales）
export const salePlanAssembleMethod = Object.freeze({
    __proto__: Enum,
    CKD: 2,
    SKD: 3,
    properties: Object.freeze({
        '2': Object.freeze({
            __proto__: EnumItem,
            [CN]: 'CKD',
            [EN]: 'CKD',
            [PT]: ''
        }),
        '3': Object.freeze({
            __proto__: EnumItem,
            [CN]: 'SKD',
            [EN]: 'SKD',
            [PT]: ''
        }),
    })
});
